﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.CommentsLinkWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.Views"
        xmlns:runtime="clr-namespace:CPPEI.Coolzon.Designtime;assembly=CPPEI.Coolzon.UI"
        mc:Ignorable="d"
        Title="配置演讲文稿" Height="130" Width="300" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
        Style="{DynamicResource WindowStyle}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <ComboBox x:Name="_ctlCommentsLink" Grid.Row="0" Grid.Column="0"  Loaded="ComboBox_Loaded" Margin="3"  >
            <ComboBox.ItemTemplate>
                <HierarchicalDataTemplate DataType="{x:Type runtime:ImageRes}" >
                    <TextBlock Text="{Binding Name}"/>
                </HierarchicalDataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <Button Style="{DynamicResource  ShortButtonStyle}" x:Name="_ctlClear" Grid.Column="1" Grid.Row="0" Content="清空" Margin="3" Click="_ctlClear_Click"/>

        <Grid Grid.Row="2" Grid.ColumnSpan="2">
            <StackPanel Margin="5" Orientation="Horizontal" HorizontalAlignment="Center">
                <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" Content="确定" Margin="0,0,20,0" Click="Button_Click" Width="75" />
                <Button Style="{DynamicResource  SubmitOrCancelButtonStyle}" Name="cancel" Content="取消" Margin="20,0,0,0" Click="cancel_Click" Width="75"></Button>
            </StackPanel>
        </Grid>
    </Grid>
</Window>
